import '../common/index.less';
import * as React from 'react';
import { Route, Switch } from 'react-router-dom'
import Counter from '../components/Counter';
import PrivateRoute from './PrivateRoute'
import Home from './Home'
import Mine from './Mine'
import Profile from './Profile'
import Detail from './Detail'
import Reg from './Reg'
import Login from './Login'
import Tab from '../components/Tab';

// saber
// <Counter/>

export default class App extends React.Component {
  render() {
    return (
      <React.Fragment>
        <Switch>
          <Route exact path='/' component={Home} />
          <PrivateRoute path='/mine' component={Mine} />
          <Route exact path='/profile' component={Profile} />
          <Route exact path='/detail/:id' component={Detail} />
          <Route exact path='/Reg' component={Reg} />
          <Route exact path='/Login' component={Login} />
        </Switch>
        <Tab />
      </React.Fragment>
    )
  }
}
